package com.atguigu.gulimall.order.service;

import com.atguigu.gulimall.order.vo.OrderConfirmVo;
import com.atguigu.gulimall.order.vo.OrderSubmitVo;
import com.atguigu.gulimall.order.vo.PayVo;
import com.atguigu.gulimall.order.vo.SubmitOrderResponseVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.order.entity.OrderEntity;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author lijingchun
 * @email 862058433@gmail.com
 * @date 2024-07-03 09:30:43
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);
	/**
	 * 订单确认页返回需要用的数据
	 * @return
	 */
	OrderConfirmVo confirmOrder() throws ExecutionException, InterruptedException;

	SubmitOrderResponseVo submitOrder(OrderSubmitVo vo);

	OrderEntity getOrderByOrderSn(String orderSn);

	PayVo getOrderPay(String orderSn);
}

